package com.hrbxlh.virtualization.vo;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author cheer
 */
public class ChapterImageAllocationVO {

    /**
     * 章节Id
     */
    private Integer chapterId;

    /**
     * 章节名称
     */
    private String chapterName;

    /**
     * 镜像类型
     */
    private String imageType;

    /**
     * 镜像名称
     */
    private String baseImageName;

    /**
     * 镜像来源
     */
    private String imageSource;

    /**
     * 集群是否损坏
     */
    private Boolean broken;

    /**
     * 配置模板
     */
    private String flavor;

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getImageType() {
        return imageType;
    }

    public void setImageType(String imageType) {
        this.imageType = imageType;
    }

    public String getBaseImageName() {
        return baseImageName;
    }

    public void setBaseImageName(String baseImageName) {
        this.baseImageName = baseImageName;
    }

    public String getImageSource() {
        return imageSource;
    }

    public void setImageSource(String imageSource) {
        this.imageSource = imageSource;
    }

    public Boolean getBroken() {
        return broken;
    }

    public void setBroken(Boolean broken) {
        this.broken = broken;
    }

    public String getFlavor() {
        return flavor;
    }

    public void setFlavor(String flavor) {
        this.flavor = flavor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("chapterId", chapterId)
                .append("chapterName", chapterName)
                .append("imageType", imageType)
                .append("baseImageName", baseImageName)
                .append("imageSource", imageSource)
                .append("broken", broken)
                .append("flavor", flavor)
                .toString();
    }
}
